import logging
from appAccounts.config import log_level

logger = logging.getLogger()
logger.setLevel(log_level)

stdout_handler = logging.StreamHandler()
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
stdout_handler.setFormatter(formatter)

logger.addHandler(stdout_handler)
